require(['./config'], () => {
    require(['template', 'url', 'header', 'footer', 'dropdown'], (template, url) => {
        class Integral {
            constructor () {
                this.shop()
            }

            shop () {
                $.get(`${url.rap2BaseUrl}/integral/get`, resp => {
                    if (resp.code === 200) {
                      const { list } = resp.body
                      $('.list').html(template('InterTemplate', { list }))
                    }
                  })
            }
        }
        new Integral()
    })
})